package m.member.order.model;

import m.common.model.FieldMeta;
import m.common.model.LinkTableMeta;
import m.common.model.Model;
import m.common.model.TableMeta;
import m.common.model.type.FieldType;
import manage.model.OrgGroupView;

import java.util.Date;

@TableMeta(name="to_recharge_offset",description="充值核销表")
public class RechargeOffset extends Model {
    @FieldMeta(name="input_date",type=FieldType.DATE,defaultValue = "CURRENT_TIMESTAMP",description="录入时间")
    private Date inputDate;
    @LinkTableMeta(name="order_oid",table= OrderInfo.class,description="所属订单")
    private OrderInfo order;
    @LinkTableMeta(name="recharge_oid",table= MemberRecharge.class,description="所属充值")
    private MemberRecharge recharge;
    @FieldMeta(name = "pay_amount",type = FieldType.DOUBLE,defaultValue = "0",description = "付款金额")
    private Double payAmount;
    @FieldMeta(name = "give_amount",type = FieldType.DOUBLE,defaultValue = "0",description = "赠送金额")
    private Double giveAmount;
    @LinkTableMeta(name="in_dept_oid",table= OrgGroupView.class,description="充值部门")
    private OrgGroupView inDept;
    @LinkTableMeta(name="out_dept_oid",table= OrgGroupView.class,description="开单部门")
    private OrgGroupView outDept;
    @FieldMeta(name="status",type= FieldType.STRING,description="状态",defaultValue = "N",dictOption = "Y:已确认,N:待确认")
    private String status;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getInputDate() {
        return inputDate;
    }

    public void setInputDate(Date inputDate) {
        this.inputDate = inputDate;
    }

    public OrderInfo getOrder() {
        return order;
    }

    public void setOrder(OrderInfo order) {
        this.order = order;
    }

    public MemberRecharge getRecharge() {
        return recharge;
    }

    public void setRecharge(MemberRecharge recharge) {
        this.recharge = recharge;
    }

    public Double getPayAmount() {
        return payAmount;
    }

    public void setPayAmount(Double payAmount) {
        this.payAmount = payAmount;
    }

    public Double getGiveAmount() {
        return giveAmount;
    }

    public void setGiveAmount(Double giveAmount) {
        this.giveAmount = giveAmount;
    }

    public OrgGroupView getInDept() {
        return inDept;
    }

    public void setInDept(OrgGroupView inDept) {
        this.inDept = inDept;
    }

    public OrgGroupView getOutDept() {
        return outDept;
    }

    public void setOutDept(OrgGroupView outDept) {
        this.outDept = outDept;
    }
}
